import axios from '../axios'

/* 
 * 应用管理模块
 */
// 运行
export const appRun = (data) => {
    return axios({
        url: '/app/run',
        method: 'post',
        data
    })
}
// 删除
export const appDelete = (data) => {
    return axios({
        url: '/bach/installedApp/deleteApp',
        method: 'post',
        data
    })
}
// 安装应用
export const appInstall = (data) => {
    return axios({
        url: '/bach/installedApp/save',
        method: 'post',
        data
    })
}
// 查询应用商店列表
export const findAppMarket = (data) => {
    return axios({
        url: '/bach/chart/findAll',
        method: 'post',
        data
    })
}
// 查询我的应用列表
export const findMyApp = (data) => {
    return axios({
        url: '/bach/installedApp/findAll',
        method: 'post',
        data
    })
}
export const findAppById = (params) => {
    return axios({
        url: '/bach/installedApp/findById',
        method: 'get',
        params
    })
}